<?php echo $header; ?>
<div class="container login">
  <?php if ($success) { ?>
    <div class="alert alert-success alert-position text-center"><i class="fa fa-check-circle"></i> <?php echo $success; ?>
      <button type="button" class="close" data-dismiss="alert">&times;</button>
    </div>
  <?php } ?>
  <?php if ($active) { ?>
    <div class="alert alert-success alert-position text-center"><i class="fa fa-check-circle"></i> 您的账户已激活，请登录！
      <button type="button" class="close" data-dismiss="alert">&times;</button>
    </div>
  <?php } ?>
  <?php if ($error_warning) { ?>
    <div class="alert alert-danger alert-position text-center"><i class="fa fa-exclamation-circle"></i> <?php echo $error_warning; ?>
      <button type="button" class="close" data-dismiss="alert">&times;</button>
    </div>
  <?php } ?>
  <?php if ($error_token) { ?>
    <div class="alert alert-danger alert-position text-center"><i class="fa fa-exclamation-circle"></i> <?php echo $error_token; ?>
      <button type="button" class="close" data-dismiss="alert">&times;</button>
    </div>
  <?php } ?>
  <div class="row">
    <div class="col-lg-4 col-lg-offset-4 col-md-6 col-md-offset-3 col-sm-6 col-sm-offset-3 col-xs-10 col-xs-offset-1 login-body b-s-b">
      <form action="<?php echo $action; ?>" method="post" enctype="multipart/form-data">
        <div class="form-group has-feedback input-margin">
          <span class="glyphicon glyphicon-user form-control-feedback icon-pos-font"></span>
          <input type="text" name="username" value="<?php echo $username; ?>" placeholder="<?php echo $entry_username; ?>" id="input-username" class="input-bg form-control b-s-b">
        </div>
        <div class="form-group has-feedback input-margin input-margin-more">
          <span class="glyphicon glyphicon-lock form-control-feedback icon-pos-font"></span>
          <input type="password" name="password" value="<?php echo $password; ?>" placeholder="<?php echo $entry_password; ?>" id="input-password" class="form-control b-s-b input-bg">
          <span class="glyphicon glyphicon-eye-open form-control-feedback icon-font eye-password-display"></span>
        </div>
        <div class="input-margin input-margin-more">
          <button type="submit" class="btn btn-primary btn-padding b-s-b">登陆</button>
          <a class="btn btn-primary btn-padding b-s-b btn-margin-left" href="<?php echo $register; ?>">注册</a>
        </div>
        <?php if ($forgotten) { ?>
        <div class="input-margin forget-password">
          <p class="text-center"><a href="<?php echo $forgotten; ?>">忘记密码</a></p>
        </div>
        <?php } ?>
      </form>
    </div>
  </div>
<?php echo $footerout; ?>
<?php echo $footer; ?>